package pojo;

import java.util.Date;

public class Flight {
    private int id;
    private String flyId;
    private String flyDesc;
    private String destination;
    private Date flyTime;

    public Flight() {
    }

    public Flight(int id, String flyId, String flyDesc, String destination, Date flyTime) {
        this.id = id;
        this.flyId = flyId;
        this.flyDesc = flyDesc;
        this.destination = destination;
        this.flyTime = flyTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getFlyId() {
        return flyId;
    }

    public void setFlyId(String flyId) {
        this.flyId = flyId;
    }

    public String getFlyDesc() {
        return flyDesc;
    }

    public void setFlyDesc(String flyDesc) {
        this.flyDesc = flyDesc;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public Date getFlyTime() {
        return flyTime;
    }

    public void setFlyTime(Date flyTime) {
        this.flyTime = flyTime;
    }

    @Override
    public String toString() {
        return "Flight{" +
                "id=" + id +
                ", flyId=" + flyId +
                ", flyDesc='" + flyDesc + '\'' +
                ", description='" + destination + '\'' +
                ", flyTime=" + flyTime +
                '}';
    }
}
